﻿using System.Drawing;
using System.Windows.Forms;

namespace Main.Forms
{
    public partial class Loading : DevExpress.XtraEditors.XtraForm
    {
        public Loading()
        {
            InitializeComponent();
            pictureBox1.Parent = flash;
            pictureBox1.Location = new Point(0,0);
            flash.Movie = Application.StartupPath + "\\psgLoader.swf";
            flash.Play();
            flash.Loop = true;
        }
        //private delegate void ProgressDelegate();

        //private ProgressDelegate del;

        //private void UpdateProgressInternal()
        //{
        //    flash.Movie = Application.StartupPath + "\\psgLoader.swf";
        //    flash.Play();
        //}

        //public void UpdateProgress()
        //{
        //    this.Invoke(del);
        //}
    }
}